<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/echarts.min.js"></script>
    <script src="js/vue.js"></script>   <!--引入vue.js文件-->
    <script src="element-ui/lib/index.js"></script>   <!--引入组件库-->
    <link rel="stylesheet" href="element-ui/lib/theme-chalk/index.css">  <!--引入样式库-->
    <script src="js/axios-0.18.0.js"></script>
    <style>
        .time {
            font-size: 13px;
            color: #999;
        }

        .bottom {
            margin-top: 13px;
            line-height: 12px;
        }

        .button {
            padding: 0;
            float: right;
        }

        .image {
            width: 100%;
            display: block;
        }

        .clearfix:before,
        .clearfix:after {
            display: table;
            content: "";
        }

        .clearfix:after {
            clear: both
        }
        .top{
            margin-bottom: 30px;
        }
    </style>
</head>
<body>
<div id="app">
    <div class="top">
        <el-row :gutter="12">
            <el-col :span="6">
                <el-card shadow="always">
                    用户总数 ：213213
                </el-card>
            </el-col>
            <el-col :span="6">
                <el-card shadow="always">
                    吧群总数 ：1312
                </el-card>
            </el-col>
            <el-col :span="6">
                <el-card shadow="always">
                    男女比例 ：123:51
                </el-card>
            </el-col>
            <el-col :span="6">
                <el-card shadow="always">
                    评论数 ： 213212
                </el-card>
            </el-col>
        </el-row>
    </div>
    <!-- 为 ECharts 准备一个定义了宽高的 DOM -->
    <div id="gender" style="width: 600px;height:400px;align-items: center"></div>

    <div id="type" style="width: 600px;height:400px;"></div>
</div>



<script>
    new Vue({
        el:'#app',
        mounted(){

        },
        data:{
            currentDate: new Date(),
        },
        methods:{

        },

    })
</script>
<script type="text/javascript">

</script>
<script type="text/javascript">
    // 基于准备好的dom，初始化echarts实例
    var myChart = echarts.init(document.getElementById('type'));

    // 指定图表的配置项和数据
    option = {
        series: [
            {
                type: 'pie',
                data: [
                    {
                        value: 335,
                        name: '直接访问'
                    },
                    {
                        value: 234,
                        name: '联盟广告'
                    },
                    {
                        value: 1548,
                        name: '搜索引擎'
                    }
                ]
            }
        ]
    };

    // 使用刚指定的配置项和数据显示图表。
    myChart.setOption(option);
</script>
</body>
</html>